
import { useState } from "react";
import "./App.css";
import "@nutui/nutui-react/dist/style.css";

import Jisiyu from "./components/jisiyu";
function App() {
  const [list,setlist]=useState([
    {id:1,title:'张三'},
    {id:2,title:'李四'},
    {id:3,title:'王五'},
  ])

 const  handleClick=(id)=>{
  setlist(list.filter(item=>item.id!==id))

  }
    return (
    <div className="App">

      这是父组件<br/>



      这是父组件中的水墨画
      {msg}

     
      <hr />
      <Jisiyu list={list} onClick={handleClick}></Jisiyu>

    </div>
  );
}

export default App;
